package com.villaday.idf.model;

import java.util.List;

/**
 * Created by tudou on 2018/10/10.
 */

public class Cities_areasEntity {

    /**
     * code : 200
     * status : success
     * msg : success
     * body : [{"code":"yantianqu","id":"oLrGyyJRE4","name":"盐田区","serverTime":1539136911459,"shortCode":"ytq"},{"code":"dapengxinqu","id":"lnRJlGmr9N","name":"大鹏新区","serverTime":1539136911459,"shortCode":"dpxq"}]
     */

    private String code;
    private String status;
    private String msg;
    private List<BodyEntity> body;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<BodyEntity> getBody() {
        return body;
    }

    public void setBody(List<BodyEntity> body) {
        this.body = body;
    }

    public static class BodyEntity {
        /**
         * code : yantianqu
         * id : oLrGyyJRE4
         * name : 盐田区
         * serverTime : 1539136911459
         * shortCode : ytq
         *
         * sort
         */

        private String code;
        private String id;
        private String name;
        private long serverTime;
        private String shortCode;

        private int sort;

        private boolean isCheck;

        public boolean isCheck() {
            return isCheck;
        }

        public void setCheck(boolean check) {
            isCheck = check;
        }

        public BodyEntity(String name, int sort) {
            this.name = name;
            this.sort = sort;
        }

        public BodyEntity( String name,String id) {
            this.id = id;
            this.name = name;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public long getServerTime() {
            return serverTime;
        }

        public void setServerTime(long serverTime) {
            this.serverTime = serverTime;
        }

        public String getShortCode() {
            return shortCode;
        }

        public void setShortCode(String shortCode) {
            this.shortCode = shortCode;
        }
    }
}
